﻿using AutoMapper;
using B.S.BasicData.Api.Read.DTOs;
using B.S.BasicData.Domain.Entities;

namespace B.S.BasicData.Api.Read
{
    public class AutoMaperProfile : Profile
    {
        public AutoMaperProfile()
        {
            CreateMap<LogModel,LogDTO>().ReverseMap();//可互相映射
            CreateMap<DepartmentTreeDTO, DepartmentModel>().ReverseMap();//可互相映射
            CreateMap<GridTypeDTO, GridTypeModel>().ReverseMap();//可互相映射
        }
    }
}
